package com.gbiac.modules.monitor.model.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * 考勤报表-人员考勤vo
 */
@Data
public class AttendanceReportUserVO implements Serializable {
    /**
     * 人员违规列表
     */
    private List<AttendanceStatisticsUserVO> userVOList;
    /**
     * 席位违规统计列表
     */
    private List<AttendanceStatisticsSeatVO> seatVOList;
    /**
     * 违规类型统计列表
     */
    private List<AttendanceStatisticsClassVO> classVOList;

    public AttendanceReportUserVO(){
        userVOList = new ArrayList<AttendanceStatisticsUserVO>();
        String code="00";
        String name="人员";
        Random random = new Random();
        for(int i=0;i<10;i++){
            Integer num=random.nextInt(300)+1;
            AttendanceStatisticsUserVO attendanceStatisticsUserVO = new AttendanceStatisticsUserVO();
            attendanceStatisticsUserVO.setCode(code+i);
            attendanceStatisticsUserVO.setName(name+i);
            attendanceStatisticsUserVO.setNum(num);
            userVOList.add(attendanceStatisticsUserVO);
        }

        seatVOList = new ArrayList<AttendanceStatisticsSeatVO>();
        String code1="00";
        String name1="席位";
        for(int i=0;i<10;i++){
            Integer num=random.nextInt(300)+1;
            AttendanceStatisticsSeatVO attendanceStatisticsSeatVO = new AttendanceStatisticsSeatVO();
            attendanceStatisticsSeatVO.setCode(code1+i);
            attendanceStatisticsSeatVO.setName(name1+i);
            attendanceStatisticsSeatVO.setNum(num);
            seatVOList.add(attendanceStatisticsSeatVO);
        }

        classVOList = new ArrayList<AttendanceStatisticsClassVO>();
        String code2="00";
        String name2="人员";
        for(int i=0;i<10;i++){
            Integer num=random.nextInt(300)+1;
            Integer num2=random.nextInt(300)+1;
            AttendanceStatisticsClassVO attendanceStatisticsClassVO = new AttendanceStatisticsClassVO();
            attendanceStatisticsClassVO.setCode(code2+i);
            attendanceStatisticsClassVO.setName(name2+i);
            attendanceStatisticsClassVO.setDayTimeNum(num);
            attendanceStatisticsClassVO.setNightTimeNum(num2);
            classVOList.add(attendanceStatisticsClassVO);
        }
    }
}
